import Vue from 'vue'
import VueI18n from 'vue-i18n'

import enLocale from 'vant/lib/locale/lang/en-US'
import zhLocale from 'vant/lib/locale/lang/zh-CN'

import langZh from "./cn.js"
import langEN from "./en.js"

Vue.use(VueI18n)

const i18n = new VueI18n({
    locale: 'zh',
    messages: {
        'zh': { ...langZh, ...zhLocale },
        'en': { ...langEN, ...enLocale }
    }
})


export default i18n